#include<bits/stdc++.h>
using namespace std;
int anj(char ch)
{
	if(ch=='a'||ch=='d'||ch='g'||ch=='j'||ch=='m'||ch=='p'||ch=='t'||ch=='w'||ch==' ')
	{
		return 1;
	}
	else if(ch=='b'||ch=='e'||ch='h'||ch=='k'||ch=='n'||ch=='q'||ch=='u'||ch=='x')
	{
		return 2;
	}
	else if(ch=='c'||ch=='f'||ch='i'||ch=='l'||ch=='o'||ch=='r'||ch=='v'||ch=='y')
	{
		return 3;
	}
	else
	{
		return 4;
	}
}
int MAXN=200+10,h;
char ch[MAXN];
int main()
{
	cin>>ch;
	int size_ch=strlen(ch)
	for(int i=0;i<size_h;i++)
	{
		h+=anj(ch[i]);
	}
	cout<<h;
	return 0;
}
